#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    cout << "vvedi a,b" << endl;
    int a,b;
    cin >> a >> b;
    int c=sqrt(a^2+b^2);
    cout << "gipotenuza= " << c << endl;
    int P=a+b+c;
    cout << "perimetr= " << P << endl;
    return 0;
}
